#!/bin/bash

if [ $# -lt 2 ]; then
    echo "Usage: $0 <test_name> <np> [test_args]"
    exit 1
fi
test_name=$1
np=$2
shift 2 # Pass the rest of the arguments to the test

mpirun --bind-to numa --tag-output -x MSCCLPP_DEBUG=INFO -x LD_LIBRARY_PATH=@CMAKE_BINARY_DIR@:$LD_LIBRARY_PATH -np $np @CMAKE_CURRENT_BINARY_DIR@/$test_name $@
